{extend name="layout/iframe" /}

{block name="content"}
<div class="layui-card-body layui-layout-admin" style="padding: 15px;">
    <blockquote class="layui-elem-quote quoteBox">
        <form class="layui-form h between">
            <div class="layui-inline searchBox">
                <div class="layui-input-inline">
                    <input type="text" class="layui-input name" name="name" placeholder="请输入菜谱名" />
                </div>
                <input type="text" class="layui-input" value="阻止回车键提交" style="display: none;">
                <a class="layui-btn search_btn" data-type="reload">搜索</a>
                <button type="reset" class="layui-btn layui-btn-danger reset_btn"><i class="layui-icon">&#xe669;</i></button>
            </div>
            <div class="layui-inline">
                <a href="javascript:;" class="layui-btn layui-btn-normal add_btn"><i class="layui-icon"></i> 新增</a>
            </div>
        </form>
    </blockquote>

    <form class="layui-form" action="" lay-filter="component-form-group">
        <table id="dataTable" lay-filter="dataTable"></table>

        <div class="layui-form-item layui-row layui-col-xs12">
            <div class="layui-input-block">
                <div class="layui-footer">
                    <button type="button" class="layui-btn layui-btn-primary close-btn"><i class="layui-icon">&#xe65c;</i> 返回</button>
                </div>
            </div>
        </div>
    </form>
</div>

<input type="hidden" class="datalist_url" value="{:url('admin/product/getcookbooks')}">
<input type="hidden" class="add_url" value="{:url('admin/cookbook/add')}">
<input type="hidden" class="edit_url" value="{:url('admin/cookbook/edit')}">
<input type="hidden" class="delete_url" value="{:url('admin/cookbook/delete')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/pages/js/cookbook.js" type="text/javascript"></script>
{/block}